Type.registerNamespace("BM");

// LabelValueHandler object

BM.LabelValueHandler = function(leafItem) {
    BM.LabelValueHandler.initializeBase(this, [leafItem]);
}

BM.LabelValueHandler.prototype = {
    getControlValue: function() {
        var label = this.getInput();
        if (label == null) return null;
        return label.innerHTML;
    },

    setControlValue: function(value) {
        var label = this.getInput();
        if (label == null) return;
        label.innerHTML = value;
    }       
}

BM.ValueHandler['LabelValueHandler'] = BM.LabelValueHandler;
BM.LabelValueHandler.registerClass("BM.LabelValueHandler", BM.ValueHandler);